<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面截图生成器</title>
    <style>
        @font-face {
            font-family: '方正书宋简体';
            src: url('./fonts/方正书宋简体.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: '方正书宋简体', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            padding: 20px;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .tab-container {
            display: flex;
            margin-bottom: 20px;
        }
        
        .tab-button {
            padding: 15px 30px;
            background-color: #e0e0e0;
            border: none;
            cursor: pointer;
            font-size: 18px;
            font-weight: bold;
            transition: all 0.3s ease;
            border-radius: 10px 10px 0 0;
            margin-right: 5px;
        }
        
        .tab-button:hover {
            background-color: #d0d0d0;
        }
        
        .tab-button.active {
            background-color: #fff;
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .tab-content {
            display: none;
            background-color: #fff;
            border-radius: 0 10px 10px 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
        }
        
        .tab-content.active {
            display: block;
        }
        
        iframe {
            width: 100%;
            height: 800px;
            border: none;
        }
        
        h1 {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>页面截图生成器</h1>
        
        <div class="tab-container">
            <button class="tab-button active" onclick="openTab('tab1')">封面生成器</button>
            <button class="tab-button" onclick="openTab('tab2')">问题解答生成器</button>
        </div>
        
        <div id="tab1" class="tab-content active">
            <iframe src="./页面1/index.html"></iframe>
        </div>
        
        <div id="tab2" class="tab-content">
            <iframe src="./页面2/index.html"></iframe>
        </div>
    </div>
    
    <script>
        function openTab(tabId) {
            // 隐藏所有标签内容
            const tabContents = document.getElementsByClassName('tab-content');
            for (let i = 0; i < tabContents.length; i++) {
                tabContents[i].classList.remove('active');
            }
            
            // 取消所有标签按钮的活动状态
            const tabButtons = document.getElementsByClassName('tab-button');
            for (let i = 0; i < tabButtons.length; i++) {
                tabButtons[i].classList.remove('active');
            }
            
            // 显示选定的标签内容并激活相应的按钮
            document.getElementById(tabId).classList.add('active');
            event.currentTarget.classList.add('active');
        }
    </script>
</body>
</html>